﻿<%@ Page Language="C#" MasterPageFile="~/TrangQuanLy.master" AutoEventWireup="true" CodeFile="Sua_XoaPhuKienDT.aspx.cs" Inherits="Sua_XoaPhuKienDT" Title="Sửa xoá phụ kiện Điện Thoại" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
        -&nbsp;&nbsp;&nbsp;Sửa - Xóa Phụ Kiện</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="xoa_suadienthoai" style="min-height:500px; text-align: left;">
    <asp:Label ID="Label1" runat="server" ForeColor="#666666" 
            style="font-weight: 700" Text="Chọn loại điện thoại:"></asp:Label>

        <asp:DropDownList ID="drploaiphukien" runat="server" AutoPostBack="True" 
            onselectedindexchanged="drploaiDT_SelectedIndexChanged">
        </asp:DropDownList>
        <br />
        <br />
        
        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="MaPhuKien" onrowcancelingedit="GridView3_RowCancelingEdit" 
            onrowdeleting="GridView3_RowDeleting" onrowediting="GridView3_RowEditing" 
            onrowupdating="GridView3_RowUpdating" AllowPaging="True" 
            onpageindexchanging="GridView3_PageIndexChanging" PageSize="5" 
            BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" 
            CellPadding="4" CellSpacing="2" ForeColor="Black">
            <RowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="MaPhuKien" HeaderText="MaPK" Visible="False" />
                <asp:BoundField DataField="TenPhuKien" HeaderText="Tên Phụ Kiện" />
                <asp:BoundField DataField="Gia" HeaderText="Giá" />
                <asp:TemplateField HeaderText="Thông Tin">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtthongtin" runat="server" Height="150px" 
                            Text='<%# Bind("ThongTinChiTiet") %>' TextMode="MultiLine" Width="300px"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("ThongTinChiTiet") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="BaoHanh" HeaderText="Bảo Hành" />
                <asp:TemplateField>
                    <EditItemTemplate>
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" CssClass="hinhindex"
                            ImageUrl='<%# "Upload\\"+Eval("HinhAnh") %>'  />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowEditButton="True"  />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
           
            
           
            <FooterStyle BackColor="#CCCCCC" />
            <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
           
            
           
        </asp:GridView>
  
    </div>
</asp:Content>

